﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Style x:Key="TreeViewItemStyle" TargetType="{x:Type TreeViewItem}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type TreeViewItem}">
          <Border x:Name="border" Height="35">
            <StackPanel Orientation="Horizontal">
              <Image Width="22" Height="22" Source="../resources/folder.png" Margin="5,0,0,0"></Image>
              <TextBlock Text="{Binding Name}" Margin="5,0,0,0" VerticalAlignment="Center" FontSize="12"></TextBlock>
            </StackPanel>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger SourceName="border" Property="IsMouseOver" Value="True">
              <Setter TargetName="border" Property="Background" Value="#EEEEEE"></Setter>
            </Trigger>
            <Trigger Property="TreeViewItem.IsSelected" Value="True">
              <Setter TargetName="border" Property="Background" Value="#B0E2FF"></Setter>
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

</ResourceDictionary>